package com.leyou.common.exception;

import lombok.Getter;

@Getter
public class LyException extends RuntimeException {
    /**
     * 异常状态码信息
     */
    private int status;

    public LyException(int status) {
        this.status = status;
    }

    public LyException(String message, int status) {
        super(message);
        this.status = status;
    }

    public LyException(String message, Throwable cause, int status) {
        super(message, cause);
        this.status = status;
    }

    public LyException(Throwable cause, int status) {
        super(cause);
        this.status = status;
    }

    public LyException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace, int status) {
        super(message, cause, enableSuppression, writableStackTrace);
        this.status = status;
    }
}
